from Get_data.config import *
from Get_data.save_to_db import *


def start_get_data(university_name, offset, Y):
    SaveData().save(university_name, offset, Y)


if __name__ == '__main__':
    # university_name = 'tsinghua university'
    # offset_list = [offset for offset in range(0, 5)]
    # Y_list = [y for y in range(2017, 2019)]
    # print(offset_list)
    for name in UNIVERSITY_LIST1:
        print(name)
        for year in range(2000, 2020):
            for off in range(1000):
                start_get_data(name, off, year)



    # for o in range(5):
    #     start_get_data(university_name, o, 2018)
    # for offset in offset_list:
    #     start_get_data(university_name, offset, 2018)